package com.example.boot0801.mapper;

import com.example.boot0801.entity.MyProduct;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
@MapperScan("com.example.boot0801.mapper")
public interface MyProductMapper {
    void insert(MyProduct product);

    List<MyProduct> select();
     MyProduct selectById(int id);
}
